package com.yunxi.model.sto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆维修单
 * </p>
 *
 * @author caoYong
 * @since 2019-06-04
 */
@Data
@TableName("pms_sto_repair_order")
@ApiModel(value="StoRepairOrder对象", description="车辆维修单")
public class StoRepairOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "REPAIR_ORDER_ID", type = IdType.UUID)
    private String repairOrderId;

    @ApiModelProperty(value = "维修单号")
    @TableField("REPAIR_ORDER_NO")
    private String repairOrderNo;

    @ApiModelProperty(value = "单据状态(Vehicle_RepairState,1新建,2已转出库计划,3已转入库计划,4维修完成,5作废)")
    @TableField("ORDER_STATE")
    private String orderState;

    @ApiModelProperty(value = "组织代码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "车辆VIN码")
    @TableField("VIN")
    private String vin;

    @ApiModelProperty(value = "维修原因 (Vehicle_RepairReason,1异常车辆,2车辆刷机,3批量更换零部件)")
    @TableField("REPAIR_REASON")
    private String repairReason;

    @ApiModelProperty(value = "维修类型(Vehicle_RepairType,1现场维修,2返厂维修,3出厂维修)")
    @TableField("REPAIR_TYPE")
    private String repairType;

    @ApiModelProperty(value = "预计完成时间")
    @TableField("PLAN_COMPLETE_TIME")
    private Date planCompleteTime;

    @ApiModelProperty(value = "完成时间")
    @TableField("COMPLETE_TIME")
    private Date completeTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;


}
